Imaging apparatus

ABSTRACT

A lens-controlling device controls a first lens unit which moves for zooming and a second lens unit which moves for correcting the displacement of an image plane caused by zooming and for focusing. The lens-controlling device includes a memory which stores data for obtaining target-position information representing a target position to which the second lens unit is to be moved, the target position corresponding to a position to which the first lens unit is moved from a current position and a controller which generates the target-position information on the basis of the data and controls the movement of the second lens unit on the basis of position information of the first lens unit and the target-position information.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation application of co-pending U.S. patentapplication Ser. No. 11/367,811 filed Mar. 3, 2006, which is acontinuation application of U.S. patent application Ser. No. 10/931,531filed Sep. 1, 2004, which issued as U.S. Pat. No. 7,016,122 and claimedpriority from Japanese Patent Application No. 2003-310790 filed Sep. 2,2003, all of which are hereby incorporated by reference herein in theirentirety.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an imaging apparatus which receiveslight.

2. Description of the Related Art

Cameras with built-in lenses are required to be smaller, and to recordan image of an object at a position as close as possible to the camera.Accordingly, instead of mechanically moving a correcting lens and avariator lens in association with each other with a cam, a so-calledinner-focus system is commonly used. In this system, the correcting lensis moved on the basis of lens cam data stored in a microcomputer inadvance and representing trajectories of the correcting lens, andfocusing is performed using the correcting lens.

FIG. 10 is a diagram showing the structure of a known inner-focus lenssystem. With reference to the figure, the system includes a fixed frontlens 901, a zoom lens (also called a variator lens) 902 used for zooming(first lens unit), a diaphragm 903, a fixed lens 904, a focusing lens905 (second lens unit) which serves as a correcting lens having a focusadjustment function and a function of correcting the displacement of animage plane caused by zooming (a so-called compensating function), andan imaging surface 906.

In the lens system shown in FIG. 10, the focusing lens 905 serves boththe compensating function and the focus adjustment function. Therefore,even when the focal length is constant, the position of the focusinglens 905 for focusing on the imaging surface 906 varies depending theobject distance. FIG. 11 is a graph obtained by plotting the position ofthe focusing lens 905 for focusing the object image on the imagingsurface 906 versus focal length for different object distances. Whenzooming is performed, a trajectory corresponding to the object distanceis selected from a plurality of trajectories shown in FIG. 11, and thefocusing lens 905 is moved along the selected trajectory. Accordingly,the focused state is maintained during zooming.

In a lens system in which focusing is performed using a front lens, afocusing lens is provided separately from a zoom lens and the zoom lensand the focusing lens are mechanically connected to a cam ring.Accordingly, when the focal length is changed by manually rotating thecam ring, the lenses are reliably moved by the cam ring no matter howfast the cam ring is rotated. Since the zoom lens and the focusing lensmove along an optical axis while sliding along cams formed on the camring, image blurring due to zooming does not occur as long as thefocusing lens is at an in-focus position.

In comparison, in the above-described inner-focus lens system,information of the trajectories shown in FIG. 11 or informationcorresponding thereto (information representing the trajectories orfunctions taking lens position as a parameter) is stored in advance, andzooming is performed by moving the focusing lens along a trajectoryselected from among the trajectories on the basis of the positions ofthe focusing lens and the zoom lens.

As is clear from FIG. 11, when the zoom lens is moved in the directionfrom telephoto to wide angle, the focused state can be maintained usingthe above-described trajectory tracing method since the trajectoriesconverge toward the wide-angle end. However, when the zoom lens is movedin the direction from wide angle to telephoto, the trajectory to betraced by the focusing lens cannot be determined if the focusing lens isat a position where the trajectories converge, and therefore the focusedstate cannot be maintained by the above-described trajectory tracingmethod.

Accordingly, Japanese Patent No. 2795439 discloses a control method inwhich the focusing lens is repeatedly moved in a direction causing theimage to go out of focus and then in a direction to adjust the focus onthe basis of the information representing the focus state (in otherwords, the moving speed is varied) when the zoom lens is being moved forzooming. In addition, a method for increasing the accuracy of selectingthe trajectory to be traced is also disclosed in Japanese Patent No.2795439 (FIGS. 3 and 4). According to this method, the period ofvariation in a sharpness signal is varied by changing the amount ofvariation in a tracing speed depending on the object distance, the focallength, and the depth of field.

In the above-described control method for the zooming operation, focusdetection is performed by a TV-AF method using a video signal from animaging device. Therefore, processes are normally performed insynchronization with a vertical synchronizing signal.

On the other hand, as is clear from FIG. 11, when zooming is performedusing the inner-focus lens system, the cam trajectories to be traced bythe focusing lens are on substantially the same point at the wide-angleend for object distances in the range of several tens of centimeters toinfinity. Therefore, when the TV-AF method is used, the cam trajectoryto be traced cannot be selected accurately unless the zoom lens is movedto an area near the telephoto end.

In TV-AF, a signal detection period at which an AF evaluation value isobtained is equal to the period of the vertical synchronizing signal.Accordingly, as the zoom speed increases, the accuracy of determiningthe trajectory to be traced is degraded. Therefore, although actuatorsfor focusing and zooming have recently been improved and made smaller,and inexpensive super-high-speed actuators have been developed, thepotential of such actuators cannot be sufficiently exploited when theinner-focus lens system and the TV-AF method are used in combination,and hence, there is a limit to the zoom speed. Although high-speedzooming using super-high-speed actuators can be performed when the angleof view is adjusted in the standby mode, the zoom speed must be reducedin the recording mode in order to prevent image blurring.

In addition, when long-time exposure (recording), such as so-called slowshutter, is performed, the detection period of the AF evaluation valuebecomes equal to the exposure period, and the tracing accuracy isdegraded even when the zoom speed is not high. Therefore, image blurringmay occur when the trajectory is being determined and a long time isrequired for correcting the image blurring if zooming and panning areperformed simultaneously. As a result, the imaging performance isdegraded.

In addition, also when the contrast of the object is low or when thesignal-to-noise (S/N) ratio is low due to low illumination, in thezooming operation, an accurate AF evaluation value cannot be accuratelydetected by the TV-AF method. Therefore, the trajectory-tracingperformance is also degraded in these cases.

SUMMARY OF THE INVENTION

An object of the present invention is to provide a lens-controllingdevice, an optical apparatus, and a lens-controlling method with whichhigh-quality zooming can be performed irrespective of the shooting sceneand camerawork while reliably maintaining a focused state, even when thezoom speed is high.

In order to attain the above-described object, according to the presentinvention, a lens-controlling device for controlling a first lens unitwhich moves for zooming and a second lens unit which moves for focusing,the lens-controlling device includes a memory which stores data forobtaining target-position information representing a target position towhich the second lens unit is to be moved, the target positioncorresponding to a position to which the first lens unit is moved from acurrent position; a controller which generates the target-positioninformation on the basis of the data stored in the memory and controlsthe movement of the second lens unit on the basis of positioninformation of the first lens unit and the target-position information;and a detector which detects a distance to an object to be focused on.The controller selects data items to be used from the data stored in thememory on the basis of a detection result obtained by the detector.

Further objects, features and advantages of the present invention willbecome apparent from the following description of the preferredembodiments with reference to the attached drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing the structure of a video cameraaccording a first embodiment of the present invention.

FIG. 2 is a flowchart showing an operation of the video camera accordingto the first embodiment.

FIG. 3 is a flowchart showing an operation of a video camera accordingto a second embodiment.

FIG. 4 is another flowchart showing the operation of the video cameraaccording to the second embodiment.

FIG. 5 is a flowchart showing the technical premise of the presentinvention.

FIG. 6 is another flowchart showing the technical premise of the presentinvention.

FIG. 7 is another flowchart showing the technical premise of the presentinvention.

FIG. 8 is another flowchart showing the technical premise of the presentinvention.

FIG. 9 is another flowchart showing the technical premise of the presentinvention.

FIG. 10 is a schematic diagram showing the structure of a known takingoptical system.

FIG. 11 is a graph showing in-focus trajectories for different objectdistances.

FIG. 12 is a diagram for explaining the in-focus trajectories.

FIG. 13 is a diagram for explaining a method for interpolating themoving direction of a zoom lens.

FIG. 14 is a diagram showing an example of a data table of the in-focustrajectories.

FIGS. 15A and 15B are diagrams showing the technical premise of thepresent invention.

FIG. 16 is a diagram showing the technical premise of the presentinvention.

FIG. 17 is a diagram for explaining a three-point measurement of adistance.

FIG. 18 is a diagram for explaining a distance measurement using aphase-difference detection method.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

Embodiments of the present invention will be described below withreference to the accompanying drawings.

Technical Premise

Before describing the embodiments of the present invention, thetechnical premise of the present invention will be explained.

FIG. 12 is a diagram for explaining an example of a trajectory-tracingmethod of a focusing lens. In FIG. 12, Z₀, Z₁, Z₂, . . . , Z₆ arepositions of a zoom lens. In addition, a₀, a₁, a₂, . . . , a₆ and b₀,b₁, b₂, . . . , b₆ are positions of the focusing lens for differentobject distances, and these positions are stored in a microcomputer (notshown) in advance. Each group of focusing-lens positions (a₀, a₁, a₂, .. . , a₆ and b₀, b₁, b₂, . . . , b₆) defines an in-focus trajectory fora representative object distance (representative trajectory) which is tobe traced by the focusing lens.

In addition, p₀, p₁, p₂, . . . , p₆ are positions on an in-focustrajectory which is calculated on the basis of the two representativetrajectories and which is to be actually traced by the focusing lens.The positions p₀, p₁, p₂, . . . , p₆ on this in-focus trajectory arecalculated as follows:p(n+1)=|p(n)−a(n)|/|b(n)−a(n)|×|b(n+1)−a(n+1)|+a(n+1)  (1)

According to Equation (1), when the focusing lens is at p0 in FIG. 12,an internal ratio at which p0 divides line b0-a0 is determined first,and then p1 is determined as the point which divides line b1-a1 at thedetermined internal ratio. The moving speed of the focusing lens formaintaining the focused state is determined from the displacement p1-p0and the time required for the zoom lens to move from Z0 to Z1.

Next, the case is considered in which the position where the zoom lensstops is not limited to the positions on the boundaries between zoomareas defined in the representative-trajectory data stored in advance.FIG. 13 is a diagram for explaining a method for interpolating themoving direction of the zoom lens. In this figure, a portion of FIG. 12is extracted and the position of the zoom lens is arbitrary.

In FIG. 13, the vertical axis shows the position of the focusing lens,and the horizontal axis shows the position of the zoom lens. It isassumed that when the positions of the zoom lens are Z0, Z1, . . . ,Zk−1, Zk, . . . , Zn, the respective focusing-lens positions on therepresentative trajectories stored in the microcomputer for differentobject distances are given as a0, a1, . . . , ak−1, ak . . . , an, andb0, b1, . . . , bk−1, bk . . . , bn.

When the zoom lens is at Zx, which is not on any of the boundariesbetween the zoom areas, and the focusing lens is at px, ax and bx arecalculated as follows:ax=ak−(Zk−Zx)×(ak−ak−1)/(Zk−Zk−1)  (2)bx=bk−(Zk−Zx)×(bk−bk−1)/(Zk−Zk−1)  (3)Thus, ax and bx are calculated using the internal ratio obtained fromthe current zoom-lens position and two boundary positions on both sidesthereof (Zk and Zk−1 in FIG. 13) and four representative-trajectory dataitems stored in advance (ak, ak−1, bk, and bk−1 in FIG. 13). Morespecifically, ax and bk are determined as points that divide linesak−1-ak and bk−1-bk, respectively, at the above-described internalratio.

Then, pk and pk−1 are calculated from Equation (1) using theabove-described four representative-trajectory data items as points thatdivide lines bk-ak and bk−1-ak−1, respectively, at the internal ratioobtained from ax, px, and bx.

When zooming from wide angle to telephoto, the moving speed of thefocusing lens for maintaining the focused state is determined from thetime required for the zoom lens to move from Zx to Zk and the distancebetween the current focusing-lens position px and the target position pkto which the focusing lens must be moved.

When zooming from telephoto to wide angle, the moving speed of thefocusing lens for maintaining the focused state is determined from thetime required for the zoom lens to move from Zx to Zk−1 and the distancebetween the current focusing-lens position px and the target positionpk−1 to which the focusing lens must be moved.

An example of a data table of in-focus trajectory information stored inadvance in the microcomputer is shown in FIG. 14. The data table shownin FIG. 14 includes focusing-lens position data A(n,v), which variesdepending on the zoom-lens position and the object distance. Theparameter n for the columns represents the object distance and theparameter v for the rows represents the zoom-lens position (focallength). In the data table, n=0 corresponds to the infinite objectdistance, and the object distance is reduced toward the close-up end asn increases. The object distance is 1 cm when n=m.

In addition, v=0 corresponds to the wide-angle end, and the focal lengthincreases as v increases. The zoom lens is at the telephoto end whenv=s. Accordingly, each column in the data table defines a singlerepresentative trajectory.

Next, a trajectory-tracing method for solving the above-describedproblem, that is, the inability to accurately determine the trajectoryto be traced by the focusing lens in the zooming operation from wideangle to telephoto, will be described below.

In FIGS. 15A and 15B, the horizontal axis shows the position of the zoomlens. In addition, in FIG. 15A, the vertical axis shows an AF evaluationsignal obtained from an image signal by a TV-AF method. The AFevaluation signal represents the level of a high-frequency component(sharpness signal) in the image signal. In FIG. 15B, the vertical axisshows the position of the focusing lens. In FIG. 15B, reference numeral1304 denotes a desired trajectory (collection of target positions) alongwhich the focusing lens is to be moved during zooming while focusing onan object positioned at a predetermined distance.

When the zoom lens is in a region closer to the wide-angle end than theposition denoted by 1306 (Z14) and the focusing lens moves toward theclose-up end, the sign of a standard moving speed for the in-focustrajectory tracing is defined as positive. In addition, when the zoomlens is in a region closer to the telephoto end than the position 1306and the focusing lens moves toward the infinity end, the sign of thestandard moving speed for the in-focus trajectory tracing is defined asnegative. If the focusing lens moves along the desired trajectory 1304while maintaining the focused state, the level of the AF evaluationsignal is maintained at the level denoted by 1301 in FIG. 15A.Generally, the AF evaluation signal level is maintained substantiallyconstant during zooming if the focused state is maintained.

In FIG. 15B, the standard moving speed of the focusing lens which tracesthe desired trajectory 1304 during zooming is defined as Vf0. If theactual moving speed of the focusing lens is defines as Vf and is variedabove and below the standard moving speed Vf0 during zooming, the actualtrajectory is shaped like a zigzag line, as denoted by 1305 (hereaftercalled zigzag movement).

In such a case, the AF evaluation signal level varies between maximumand minimum values, as denoted by 1303 in FIG. 15A. The AF evaluationsignal level 1303 reaches the maximum level 1301 at positions where thedesired trajectory 1304 and the actual zigzag trajectory 1305 intersect(that is, positions with even numbers among Z0, Z1, Z2, . . . , Z16). Inaddition, the AF evaluation signal level 1303 is reduced to the minimumlevel 1302 at positions where a moving-direction vector of the actualtrajectory 1305 is changed (that is, positions with odd numbers amongZ0, Z1, Z2, . . . , Z16).

Therefore, when considering the case in which the minimum level 1302 ofthe AF evaluation signal level 1303 is set to TH1 in advance (that is,if an allowable range of the AF evaluation signal level for ensuring thefocused state is defined by setting the lower limit TH1) and themoving-direction vector of the trajectory 1305 is switched each time theAF evaluation signal level 1303 is reduced to TH1, the focusing lens iscaused to approach the desired trajectory 1304 each time themoving-direction vector is switched. More specifically, each time theimage blurs to an extent corresponding to the difference between themaximum level 1301 and the minimum level 1302 (TH1) of the AF evaluationsignal, the driving conditions (the driving direction and the drivingspeed) of the focusing lens are controlled so as to reduce the blurring,so that zooming can be performed while suppressing the degree ofblurring.

Accordingly, when zooming is performed from wide angle to telephoto, inwhich the in-focus trajectories for different object distances divergefrom the converged state shown in FIG. 11, the moving speed Vf of thefocusing lens is varied relative to the standard moving speed Vf0(calculated using p(n+1) obtained from Equation (1)) such that themoving-direction vector is switched in accordance with the AF evaluationsignal level, as shown by the trajectory 1305. Therefore, even if thestandard moving speed Vf0 is not optimum for the object distance at thattime, re-determination (re-generation) of the in-focus trajectory isperformed while the AF evaluation signal level is prevented from beingreduced below the minimum level 1302 (TH1) and blurring is suppressed towithin a certain amount. In addition, by suitably setting the minimumlevel TH1, zooming can be performed while keeping image blurringindiscernible.

The moving speed Vf of the focusing lens is calculated by adding apositive correction speed Vf+ and a negative correction speed Vf− to thestandard moving speed:Vf=Vf0+Vf+  (4)Vf=Vf0+Vf−  (5)In order to eliminate bias in selecting the trajectory to be traced inthe above-described zooming method, the correction speeds Vf+ and Vf−are determined such that the angle between the two direction vectors ofthe moving speed Vf obtained by Equations (4) and (5) is evenly dividedby the direction vector of the standard moving speed Vf0.

In the above-described zooming control, focus detection is performedusing the image signal from the imaging device. Therefore, the controlprocess is typically performed in synchronization with a verticalsynchronizing signal.

FIG. 9 is a flowchart of a zooming control process performed in themicrocomputer. When the process starts in Step (abbreviated as S in thefigures) 701, initialization is performed in Step 702. In this step, arandom access memory (RAM) in the microcomputer and various ports areinitialized.

In Step 703, the state of an operation unit in the camera is detected.The microcomputer receives information regarding a zoom switch unitoperated by the user, and displays information of the zooming operation,such as the position of the zoom lens, on a display for informing theuser that zooming is being performed. In Step 704, an AF process isperformed. More specifically, automatic focus adjustment is performed inaccordance with the variation in the AF evaluation signal.

In Step 705, a zooming process is performed. In this process, acompensating operation for maintaining the focused state during zoomingis performed. More specifically, the standard driving direction and thestandard driving speed of the focusing lens for tracing the trajectoryshown in FIG. 12 are calculated.

In Step 706, driving directions and driving speeds with which the zoomlens and the focusing lens are to be driven during AF and zooming areselected from those calculated in the process routines of Steps 704 and705. Then, the zoom lens is driven in a range between the telephoto andwide-angle ends and the focusing lens is driven in a range between theclose-up and infinity ends, the ranges being provided by software so asto prevent the lenses from hitting the mechanical ends.

In Step 707, driving/stopping of the lenses is controlled by outputtingcontrol signals to motor drivers on the basis of the driving directioninformation and the driving speed information for zooming and focusingdetermined in Step 706. After Step 707 is completed, the process returnsto Step 703.

The steps shown in FIG. 9 are performed in synchronization with thevertical synchronizing signal. Accordingly, in Step 703, the processwaits to start another cycle until the next vertical synchronizingsignal is input.

FIGS. 5 and 6 show a control flow of a process performed by themicrocomputer once every vertical synchronization period, and thisprocess corresponds to the process performed in Step 705 of FIG. 9.FIGS. 5 and 6 are connected to each other at the circled number.

FIGS. 5 to 8 will be described below. In Step 400 of FIG. 5, a drivingspeed Zsp of a zoom motor for smooth zooming is set in accordance withthe operational information of the zoom switch unit.

In Step 401, the distance to the object being shot (object distance) isdetermined (estimated) on the basis of the current positions of the zoomlens and the focusing lens, and three trajectory parameters α, β, and γ(data for obtaining target-position information) are stored in a memoryarea, such as RAM, as the object-distance information. In this step, aprocess shown in FIG. 7 is performed. For simplification, the process ofFIG. 7 will be explained on the assumption that the focused state isobtained at the current lens positions.

In Step 501 of FIG. 7, a zoom area v where the current zoom-lensposition Zx is included is selected from among zoom areas obtained bydividing the area between the wide-angle and telephoto ends by a factors in the data table of FIG. 14. A method for determining the zoom areawill be described below with reference to FIG. 8.

First, the zoom-area parameter v is cleared in Step 601. Then, in Step602, a zoom-lens position Z(v) on the boundary of the zoom area v iscalculated as follows:Z(v)=(telephoto position−wide-angle position)×v/s+wide-angleposition  (6)In Equation (6), Z(v) corresponds to the zoom-lens positions Z0, Z1, Z2,. . . shown in FIG. 12.

In Step 603, it is determined whether or not Z(v) obtained in Step 602is equal to the current zoom-lens position Zx. If the result is ‘Yes’,it is determined that the zoom-lens position Zx is on the boundary ofthe zoom area v, and a boundary flag is set to 1 in Step 607.

If the result is ‘No’ in Step 603, it is determined whether or notZx<Z(v) is satisfied in Step 604. If the result is ‘Yes’ in Step 604, itmeans that Zx is positioned between Z(v−1) and Z(v), and the boundaryflag is set to 0 in Step 606. If the result is ‘No’ in Step 604, thezoom-area parameter v is incremented in Step 605 and the process returnsto Step 602.

The above-described steps are repeatedly performed so that when theprocess of FIG. 8 is finished, it is determined that the currentzoom-lens position Zx is in the kth zoom area (v=k) in the data table ofFIG. 14. In addition, it is also determined whether or not Zx is on theboundary of the zoom area.

Thus, with reference to FIG. 7 again, the current zoom area isdetermined in Step 501 by the process of FIG. 8. Then, the position ofthe focusing lens in the data table of FIG. 14 is determined.

First, an object-distance parameter n is cleared in Step 502. Then, inStep 503, it is determined whether or not the current zoom-lens positionis on the boundary of the zoom area. If the boundary flag is set to 0,the current zoom-lens position is not on the boundary, and the processproceeds to Step 505.

In Step 505, Z(v) is set to Zk and Z(v−1) is set to Zk−1. Next, in Step506, four table data items A(n, v−1), A(n, v), A(n+1, v−1), and A(n+1,v) are read out. Then, in Step 507, ax and bx are calculated fromEquations (2) and (3).

If it is determined that the boundary flag is set to 1 in Step 503, theprocess proceeds to Step 504, and the in-focus position A(n, v) for theobject distance n and the zoom-lens position (v in this case) and thein-focus position A(n+1, v) for the object distance n+1 and thezoom-lens position are read out and memorized as ax and bx,respectively.

In Step 508, it is determined whether or not the current focusing-lensposition px is ax or more. If px is ax or more, it is determined whetheror not the current focusing-lens position px is bx or more in Step 509.If px is less than bx, it means that the focusing-lens position px isbetween the positions corresponding to the object distances n and n+1,and the corresponding trajectory parameters are memorized in Steps 513to 515. More specifically, α=px−ax is set in Step 513, β=bx−ax is set inStep 514, and γ=n is set in Step 515.

When the result is ‘No’ in Step 508, the focusing-lens position px is atthe infinity end. In this case, α=0 is set in Step 512. Then, theprocess proceeds to Step 514, and trajectory parameters for infinity arememorized.

If the result is ‘Yes’ in Step 509, it means that the focusing-lensposition px is closer to the close-up end. In this case, theobject-distance parameter n is incremented in Step 510, and the camtrajectory data being referred to in the data table shown in FIG. 14 isshifted closer to the close-up end by a single column. Then, theincremented object-distance parameter is used in the next cycle forobtaining values to be compared with the focusing-lens position px.Then, in Step 511, it is determined whether or not the object-distanceparameter n is larger than the trajectory number m for the close-up end,that is, it is determined whether or not the object distance set in Step510 is closer to infinity than the close-up end. If the object distanceis closer to infinity than the object distance m corresponding to theclose-up end, the process returns to Step 503. If the result is ‘No’ inStep 511, it means that the focusing-lens position px is at the close-upend. In this case, the process proceeds to Step 512 and the trajectoryparameters for the close-up end are memorized.

With reference to FIGS. 5 and 6 again, the trajectory parameters forselecting the trajectory corresponding to the current zoom-lens positionand the current focusing-lens position from among the trajectories shownin FIG. 11 are memorized in Step 401.

Then, in Step 402, the position Zx′ reached by the zoom lens after asingle vertical synchronization period (1V) (the position to which thezoom lens moves from the current position) is calculated. If the zoomspeed determined in Step 400 is Zsp (pps), the zoom-lens position Zx′after the vertical synchronization period is calculated as follows:Zx′=Zx±Zsp/vertical synchronization frequency  (7)Here, pps is the unit of rotational speed of a stepping motor, andrepresents the number of steps taken per second (1 step=1 pulse). Inaddition, with respect to the sign in Equation (7), + represents themoving direction of the zoom lens toward the telephoto end, and −represents the moving direction of the zoom lens toward the wide-angleend.

Next, the zoom area v′ where Zx′ is included is determined in Step 403.In Step 403, a process similar to that of FIG. 8 is performed bysubstituting Zx and v in FIG. 8 by Zx′ and v′, respectively.

Next, in Step 404, it is determined whether or not the zoom-lensposition Zx′ after the vertical synchronization period is on theboundary of the zoom area. If the boundary flag=0, the zoom-lensposition Zx′ is not on the boundary and the process proceeds to Step405.

In Step 405, Z(v′) is set to Zk and Z(v′−1) is set to Zk−1. Next, inStep 406, four table data items A(γ, v′−1), A(γ, v′), A(γ+1, v′−1),A(γ+1, v′) corresponding to the object distance γ determined by theprocess shown in FIG. 7 are read out. Then, in Step 407, ax′ and bx′ arecalculated from Equations (2) and (3). If the result is ‘Yes’ in Step404, the process proceeds to Step 408 and the in-focus position A(γ, v′)for the object distance γ and the zoom area v′ and the in-focus positionA(γ+1, v′) for the object distance y+1 and the zoom area v′ are read outand memorized as ax′ and bx′, respectively.

Then, in Step 409, the in-focus position (target position) px′ to whichthe focusing lens is to be moved when the zoom lens reaches the positionZx′ is calculated. The target position px′ to which the focusing lens isto be moved after the vertical synchronization period is calculatedusing Equation (1) as follows:px′=(bx′−ax′)×α/β+ax′  (8)

Accordingly, the difference ΔF between the target position and thecurrent focusing-lens position is obtained as follows:ΔF=(bx′−ax′)×α/β+ax′−px

Next, in Step 410, the standard moving speed Vf0 of the focusing lens iscalculated. Vf0 is calculated by dividing the displacement ΔF of thefocusing lens by the time required for the zoom lens to move thecorresponding distance.

Next, a method for calculating the correction speeds used in themoving-speed correction (zigzag movement) of the focusing lens shown inFIGS. 15A and 15B will be described below.

In Step 411, various parameters are initialized and a reversal flag usedin the following steps is cleared. In Step 412, the correction speedsVf+ and Vf− used in the zigzag movement are calculated from the standardmoving speed Vf0 obtained in Step 410.

A correction parameter δ the correction speeds Vf+ and Vf− arecalculated as described below. FIG. 16 is a diagram for explaining amethod for calculating the correction speeds Vf+ and Vf− from thecorrection parameter δ. In FIG. 16, the horizontal axis shows thezoom-lens position and the vertical axis shows the focusing-lensposition. The trajectory to be traced is denoted by 1304.

The focus speed at which the focusing-lens position changes by y whenthe zoom-lens position changes by x (which means the focusing lensreaches the target position) is defined as the standard speed Vf0denoted by 1403. In addition, the focus speeds at which thefocusing-lens position changes by distances shifted from y by n and mwhen the zoom-lens position changes by x are defined as the correctionspeeds Vf+ and Vf−, respectively. The direction vector of the speed fordriving the focusing lens to a position closer to the close-up end thanthe displacement y, that is, the direction vector of the sum of thestandard speed Vf0 and the positive correction speed Vf+, is denoted by1401. In addition, the direction vector of the speed for driving thefocusing lens to a position closer to the infinity end than thedisplacement y, that is, the direction vector of the sum of the standardspeed Vf0 and the negative correction speed Vf−, is denoted by 1402. Thevalues n and m are determined such that an angle between the directionvector 1401 and a direction vector 1403 of the standard speed Vf0 andthat between the direction vector 1401 and the direction vector 1403 ofthe standard speed Vf0 are set to the same angle δ.

First, m and n are determined. From FIG. 16, the following equations aresatisfied:tan θ=y/x, tan(θ−δ)=(y−m)/x, and tan(θ+δ)=(y+n)/x  (9)tan(θ±δ)=(tan θ±tan δ)/(1±(−1)×tan θ×tan δ)  (10)

Accordingly, n and m are calculated from Equations (9) and (10) asfollows:m=(x2+y2)/(x/k+y)  (11)n=(x2+y2)/(x/k−y)  (12)

-   -   where tan δ=k

The correction angle δ is a parameter determined from the depth offield, the focal length, etc. Accordingly, the period of the variationin the AF evaluation signal level which varies depending on the drivingstate of the focusing lens is maintained constant relative to thedisplacement of the focusing lens, and the possibility of incorrectdetermination of the in-focus trajectory to be traced by the focusinglens during zooming is reduced.

The calculations of Equations (11) and (12) are performed by reading outa data table representing the relationship between δ and k from thememory included in the microcomputer as necessary.

When the zoom-lens position changes by x per unit time, the zoom speedZsp, the focus standard speed Vf0, and the correction speeds Vf+ and Vf−are defined as follows:Zsp=x,Vf0=y,Vf+=n and Vf−=mAccordingly, the correction speeds Vf+ and Vf− (negative speed) arecalculated from Equations (11) and (12).

In Step 413, it is determined whether or not zooming is performed on thebasis of the information showing the operational state of the zoomswitch unit obtained in Step 703 of FIG. 9. When zooming is performed,the process proceeds to Step 416. When zooming is not performed, theprocess proceeds to Step 414, and TH1 is set to a value obtained bysubtracting a predetermined constant μ from the current AF evaluationsignal level. As described above with reference to FIG. 15A, TH1 is theAF evaluation signal level used as the criterion for switching thecorrecting-direction vector (the switching criterion for the zigzagmovement). TH1 is determined immediately before zooming starts, and thisvalue corresponds to the minimum level 1302 in FIG. 15A.

Then, in Step 415, a correction flag is cleared and the process isfinished. The correction flag shows whether positive correction isapplied (correction flag=1) or negative correction is applied(correction flag=0) in the trajectory tracing.

If it is determined that zooming is performed in Step 413, it isdetermined whether or not the zooming direction is from wide angle totelephoto in Step 416. If the zooming direction is from telephoto towide angle, Vf+=0 and Vf−=0 are set in Step 419 and the process proceedsto Step 420. If the zooming direction is from wide angle to telephoto,it is determined whether or not the current AF evaluation signal levelis less than TH1 in Step 417. If the current AF evaluation signal levelis TH1 or more, the process proceeds to Step 420. If the current AFevaluation signal level is less than TH1, which means that the currentAF evaluation signal level is reduced to below the minimum level TH1(1302) shown in FIG. 15A, a reversal flag is set to 1 in Step 418 toswitch the correcting direction.

In Step 420, it is determined whether or not the reversal flag is setto 1. If the reversal flag is set to 1, it is determined whether or notthe correction flag is set to 1 in Step 421. If the correction flag isnot set to 1 in Step 421, the correction flag is changed to 1 (positivecorrection) in Step 424 and the moving speed Vf of the focusing lens isset to Vf0+Vf+ (Vf+≧0) from Equation (4).

If the correction flag is set to 1 in Step 421, the correction flag ischanged to 0 (negative correction) in Step 423 and the moving speed Vfof the focusing lens is set to Vf0+Vf− (Vf−≧0) from Equation (5).

If the reversal flag is not set to 1 in Step 420, it is determinedwhether or not the correction flag is set to 1 in Step 422. The processproceeds to Step 424 if the correction flag is set to 1, and to Step 423if the correction flag is not set to 1.

After this process, the driving directions and the driving speeds of thefocusing lens and the zoom lens are determined depending on theoperation mode in Step 706 of FIG. 9. In the zooming operation, thedriving direction of the focusing lens is set to the direction towardthe close-up end or the direction toward the infinity end depending onwhether the moving speed Vf of the focusing lens determined in Step 423or 424 is positive or negative. Thus, the trajectory to be traced isre-determined while performing the zigzag movement of the focusing lens.

The technical premise of the present invention has been described in theforegoing, and embodiments of the present invention, mainly thedifferences from the technical premise, will now be described below.

First Embodiment

FIG. 1 shows the structure of a video camera which serves as an imagingapparatus (optical apparatus) including a lens-controlling deviceaccording to a first embodiment of the present invention. In the firstembodiment, the present invention is applied to an imaging apparatuswith a built-in taking lens. However, the present invention may also beapplied to an interchangeable lens system (optical apparatus) of animaging system including a camera and the interchangeable lens systemattached to the camera. In such a case, a microcomputer included in thelens system performs a zooming operation described below in response toa signal transmitted from the camera. In addition to the video camera,the present invention may also be applied to various imaging apparatusessuch as a digital still camera.

With reference to FIG. 1, a taking optical system includes a fixed frontlens unit 101, a zoom lens unit 102 (first lens unit) which moves alongan optical axis for zooming, a diaphragm 103, a fixed lens unit 104, anda focusing lens unit 105 (second lens unit) which also moves along theoptical axis and has both a focus adjustment function and a compensatingfunction of correcting the displacement of an image plane caused byzooming are arranged, in that order from an object. The taking opticalsystem is a rear-focus optical system including four lens units withpositive, negative, positive, and positive optical powers in that orderfrom the object (from the left in the figure). Although the lens unitsare shown as if each of them includes only one lens in the figure, eachlens unit may include either a single lens or a plurality of lenses.

Reference numeral 106 denotes an imaging device, such as acharge-coupled device (CCD) and a complementary metal-oxidesemiconductor (CMOS) sensor. Light from the object passes through thetaking optical system and forms an image on the imaging device 106. Theimaging device 106 performs a photoelectric conversion of the objectimage formed thereon, and outputs an image signal. The image signal isamplified to an optimum level by an automatic gain control (AGC)amplifier 107, and is input to a camera-signal-processing circuit 108.The camera-signal-processing circuit 108 converts the image signal inputthereto into a standard television signal, and then outputs the standardtelevision signal to an amplifier 110. The amplifier 110 amplifies thetelevision signal to an optimum level, and outputs the amplifiedtelevision signal to a magnetic recording/reproducing device 111, wherethe signal is recorded on a magnetic recording medium such as a magnetictape. The recording medium may also be a semiconductor memory, anoptical disc, or the like.

The television signal amplified by the amplifier 110 is also transmittedto a liquid crystal display (LCD) circuit 114, and an imagecorresponding to the television signal is displayed on an LCD 115. TheLCD 115 also displays a message for informing the user of a shootingmode, a shooting state, a warning, etc. More specifically, the cameramicrocomputer 116 controls a character generator 113 so as to mix theoutput from the character generator 113 with the television signaltransmitted to the LCD display circuit 114, and thereby superimposes themessage on the image being displayed.

The image signal input to the camera-signal-processing circuit 108 mayalso be compressed using an internal memory and be recorded on astill-image-recording medium 112 such as a card media.

The image signal input to the camera-signal-processing circuit 108 isalso input to an AF-signal-processing circuit 109 which functions as afocus-information generator. An AF evaluation signal (focus information)is generated by the AF-signal-processing circuit 109 and is read out bythe camera microcomputer 116 as data.

In addition, the camera microcomputer 116 checks the states of a zoomswitch 130 and an AF switch 131, and detects the state of a photo switch134.

When the photo switch 134 is half-pressed, a focusing operation in an AFmode is started and the focus is locked in the focused state. When thephoto switch 134 is fully-pressed, the focus is locked irrespective ofthe focus state and an image is taken into a memory (not shown) in thecamera-signal-processing circuit 108. Then, the obtained image isrecorded on the magnetic tape or the still-image-recording medium 112.

In addition, the camera microcomputer 116 determines whether theshooting mode is set to a moving-image-shooting mode or astill-image-shooting mode depending on the state of a mode switch 133,and controls the magnetic recording/reproducing device 111 and thestill-image-recording medium 112 using the camera-signal-processingcircuit 108. More specifically, the camera microcomputer 116 suppliesthe television signal suitable for the recording medium or plays backthe television signal recorded in the magnetic recording/reproducingdevice 111 or the still-image-recording medium 112 when the mode switch133 is set to a playback mode.

When the AF switch 131 is turned off and the zoom switch 130 isoperated, a computer zoom unit (controller) 119 included in the cameramicrocomputer 116 transmits a signal to a zoom motor driver 122 inaccordance with a program stored in the computer zoom unit 119 such thatthat the zoom motor driver 122 drives the zoom lens unit 102 with thezoom motor 121 in the telephoto or wide-angle direction depending on thedirection in which the zoom switch 130 is operated. In addition, thecomputer zoom unit 119 refers to lens cam data(representative-trajectory data for a plurality of object distancesshown in FIG. 11 or trajectory parameter data) stored in a cam datamemory 120 in advance, and controls a focus motor driver 126 on thebasis of the lens cam data such that the focus motor driver 126 drivesthe focusing lens unit 106 with a focus motor 125 to correct thedisplacement of the image plane caused by zooming.

When the AF switch 131 is turned on and the zoom switch 130 is operated,an AF control unit 117 in the camera microcomputer 116 performs thezooming operation while maintaining the focused state. Accordingly, thecomputer zoom unit 119 drives the zoom lens unit 102 and the focusinglens unit 105 in accordance with the internal program on the basis ofnot only the lens cam data stored in the cam data unit 120 but also theAF evaluation signal transmitted from the AF-signal-processing circuit109 and information of a distance to the object (target to be focusedon) obtained from an object-distance detector circuit 127.

The output signal from the object-distance detector circuit 127 isprocessed by a distance-information processor 128 included in the cameramicrocomputer 116, and is output to the computer zoom unit 119 asobject-distance information.

When the AF switch 131 is turned on and the zoom switch 130 is notoperated, the AF control unit 117 outputs a signal to the focus motordriver 126 such that the focus motor driver 126 drives the focusing lens105 with the focus motor 125 so as to maximize the AF evaluation signaltransmitted from the AF-signal-processing circuit 109. Thus, anautomatic focus adjustment is performed.

The object-distance detector circuit 127 measures the distance to theobject by a three-point measurement method using an active sensor, andoutputs the measurement result as the distance information. In thiscase, the active sensor may be an infrared sensor which is commonly usedin compact cameras.

Although the distance detection is performed by the three-pointmeasurement method in the present embodiment, the method for detectingthe distance is not limited to this. For example, the distance may alsobe detected using a TTL phase-difference detection method. In such acase, light from an exit pupil of the taking lens is divided by alight-dividing device, such as a half-prism or a half-mirror, and lightcomponents obtained by the light-dividing device are guided to at leasttwo line sensors via sub-mirrors and imaging lenses. Then, the directionand amount of shift between the outputs from the line sensors aredetected on the basis of the correlation between the outputs, and thedistance to the object is determined on the basis of the result ofdetection.

The principle of distance calculation using the three-point measurementmethod and the phase-difference detection method will be described belowwith reference to FIGS. 17 and 18. FIG. 17 shows an object 201, animaging lens 202 for a first optical path, a line sensor 203 for thefirst optical path, an imaging lens 204 for a second optical path, and aline sensor 205 for the second optical path. The two line sensors 203and 205 are separated from each other by a reference length B. Acomponent of light from the object 201 which travels along the firstoptical path passes through the imaging lens 202 to form an image on theline sensor 203, and another component of light from the object 201which travels along the second optical path passes through the imaginglens 204 to form an image on the line sensor 205. FIG. 18 shows examplesof signals output from the line sensors 203 and 205 on which the lightcomponents which travel along the first and second optical paths formthe respective object images. Since the two line sensors are separatedfrom each other by the reference length B, the object-image signals areshifted from each other by X pixels, as is understood from FIG. 17. X isdetermined by calculating the correlation between the two signals whileshifting them relative to each other and determining the number ofpixels corresponding to the amount of shift at which maximum correlationis obtained. A distance L to the object is calculated as L=B×f/X fromthe principal of three-point measurement using X, the reference lengthB, and a focal length f of the imaging lenses 202 and 204.

Alternatively, the distance to the object may also be detected using anultrasonic sensor by measuring a propagation speed of an ultrasonicwave.

The distance information obtained from the object-distance detectorcircuit 127 is transmitted to the distance-information processor 128.The distance-information processor 128 performs three kinds of processeswhich are described below.

1. In a first process, the cam trajectory corresponding to the currentpositions of the zoom lens unit 102 and the focusing lens unit 105 isselected from the trajectories shown in FIG. 11, and the object distancecorresponding to the selected cam trajectory is determined. The camtrajectory is calculated using the current lens-unit positions by, forexample a process similar to Step 401 of FIG. 5 as an imaginary camtrajectory defined by the trajectory parameters α, β, and γ and dividingthe area between the cam trajectories corresponding to columns γ and γ+1in the table of FIG. 14 at an internal ratio of α/β. Then, the objectdistance corresponding the cam trajectory is determined in units ofmeters. The trajectory parameters α, β, and γ and the object distanceare converted into each other using a predetermined correlation table,and the actual distance to the main object is output accordingly.

2. In a second process, inverse conversion of the actual object distanceobtained by the object-distance detector circuit 127 is performed usingthe above-described correlation table, and the cam trajectory defined bythe trajectory parameters α, β, and γ in FIG. 11 is determined. Theinverse conversion using the correlation table is performed withoutusing the data in a region around the wide-angle end where the camtrajectories converge in FIG. 11, and data in a region around thetelephoto end where the trajectories are separated from each other isused so as to obtain the trajectory parameters with high resolution.

3. In a third process, the difference between the object distancesobtained in the first and second processes and the direction of thedifference are calculated.

Among the above-described first, second, and third processes, the camtrajectory data corresponding to the distance detected by theobject-distance detector circuit 127 is determined in the secondprocess.

The camera microcomputer 116 also performs exposure control. Morespecifically, the camera microcomputer 116 refers to a brightness levelof the television signal generated by the camera-signal-processingcircuit 108, and controls the aperture in the diaphragm 103 using aniris driver 124 for driving an IG meter 123 such that the brightnesslevel becomes adequate for the exposure. The aperture of the diaphragm103 is detected by an iris encoder 129, and is fed back to the controlsystem for controlling the diaphragm 103. When adequate exposure controlcannot be performed using only the diaphragm 103, an exposure time ofthe imaging device 106 is controlled using a timing generator (TG) 132in a range from high-speed shutter to so-called slow shutter (long-timeexposure). In addition, in the case in which sufficient exposure cannotbe performed due to, for example, low illumination, the gain of thetelevision signal is controlled using the amplifier 107.

The user operates a menu switch unit 135 to manually set a shooting modesuitable for the shooting conditions and to switch the function of thecamera.

Next, an algorithm used in the zooming operation will be described belowwith reference to FIG. 2. In the present embodiment, the computer zoomunit 119 included in the camera microcomputer 116 performs the processesdescribed below, which include the above-described process flows(programs).

In the zooming operation of the present embodiment, information of aposition on the in-focus trajectory (zoom tracking curve) to be tracedby the focusing lens unit 105, that is, a target-position, is generatedon the basis of the distance information obtained by the object-distancedetector circuit 127. The process flow shown in FIG. 2 corresponds to anexample in which zooming is performed while determining the zoomtracking curve using the obtained object-distance information. Themethod used in this example is advantageous in super-high-speed zoomingor the like where the detection period of the AF evaluation value islong and the zoom tracking curve cannot be determined with sufficientaccuracy when only the TV-AF reference signal is used.

In the present embodiment, a process shown in FIG. 2 corresponds to theprocess performed in Step 705 of FIG. 9. Steps similar to those shown inFIGS. 5 and 6 are denoted by the same reference numerals, andexplanations thereof are thus omitted.

First, a zoom speed in the zooming operation is determined in Step 400.In Step 201, the distance-information processor 128 performs acam-trajectory determining process using the output signal from theobject-distance detector circuit 127. In this process, the in-focustrajectory corresponding to the current object distance, that is, thedistance to the main object (target to be focused on), is selected fromamong a plurality of in-focus trajectories (see FIG. 11) which arestored in the cam data memory 120 in advance as the lens cam data. Morespecifically, the trajectory parameters α, β, and γ are determined bythe inverse conversion of the actual distance using the correlationtable.

Instead of performing the above-described inverse conversion, thecorrelation between the object distance and the in-focus trajectory tobe selected may also be obtained using another table data as describedbelow. For example, table data showing the correlation between thedistance variation and the trajectory parameters in a range where thetrajectory curves for the representative object distances have aconstant shape may be prepared so that the trajectory parameters (thatis, the in-focus trajectory to be selected) can be determined from thedistance information. For the object distances corresponding to the camcurves whose shapes vary, a plurality of look-up tables for individualcorrelations are prepared. Accordingly, the trajectory parameters can bedetermined for all of the object distances. With respect to the focallength, the trajectory parameters α, β, and γ are determined using along-focal-length area, where the resolution of the trajectoryparameters is high, in the discrete cam trajectory information shown inFIG. 11 which is stored in the memory as data. Therefore, even when thecurrent lens position is near the wide-angle end in FIG. 11 where thecam trajectories converge, the trajectory parameters can be obtained ata point near the telephoto end in FIG. 11, where the cam trajectoriesdiverge, on the basis of the detected distance information. Thus, thecam trajectory to be traced is determined by calculation (interpolation)based on the trajectory parameters while the current lens position isnear the wide-angle end. Then, after the trajectory parameters areobtained in this manner, information of a position on the trajectory tobe traced by the focusing lens unit 105 (target-position information) isgenerated in the steps described below.

In Step 402, the position Zx′ reached by the zoom lens after a singlevertical synchronization period (1V) (the position to which the zoomlens moves from the current position) is calculated. If the zoom speeddetermined in Step 400 is Zsp (pps), the zoom-lens position Zx′ afterthe vertical synchronization period is calculated as follows:Zx′=Zx±Zsp/vertical synchronization frequency  (7)

Here, pps is the unit of rotational speed of a stepping motor, andrepresents the number of steps taken per second (1 step=1 pulse). Inaddition, with respect to the sign in Equation (7), + represents themoving direction of the zoom lens toward the telephoto end, and −represents the moving direction of the zoom lens toward the wide-angleend.

Next, the zoom area v′ where Zx′ is included is determined in Step 403.In Step 403, a process similar to that of FIG. 8 is performed bysubstituting Zx and v in FIG. 8 by Zx′ and v′, respectively.

Next, in Step 404, it is determined whether or not the zoom-lensposition Zx′ after the vertical synchronization period is on theboundary of the zoom area. If the boundary flag=0, the zoom-lensposition Zx′ is not on the boundary and the process proceeds to Step405. In Step 405, Z(v′) is set to Zk and Z(v′−1) is set to Zk−1.

Next, in Step 406, four table data items A(γ, v′−1), A(γ, v′), A(γ+1,v′−1), A(γ+1, v′) corresponding to the object distance γ determined bythe process shown in FIG. 7 are read out. Then, in Step 407, ax′ and bx′are calculated from Equations (2) and (3). If the result is ‘Yes’ inStep 404, the process proceeds to Step 408, and the in-focus positionA(γ, v′) of the focusing lens unit 105 for the object distance γ and thezoom area v′ and the in-focus position A(γ+1, v′) for the objectdistance γ+1 and the zoom area v′ are read out and memorized as ax′ andbx′, respectively.

Then, in Step 409, the in-focus position (target position) px′ to whichthe focusing lens unit 105 is to be moved when the zoom lens reaches theposition Zx′ is calculated. The target position px′ to which thefocusing lens unit 105 is to be moved after the vertical synchronizationperiod is calculated using Equation (1) as follows:px′=(bx′−ax′)×α/β+ax′  (8)

Accordingly, the difference ΔF between the target position and thecurrent focusing-lens position is obtained as follows:ΔF=(bx′−ax′)×α/β+ax′−px

Next, in Step 410, the standard moving speed Vf0 of the focusing lens iscalculated. Vf0 is calculated by dividing the displacement ΔF of thefocusing lens by the time required for the zoom lens unit 102 to movethe corresponding distance.

Then, the process proceeds to Step 706 of FIG. 9. If the zoomingoperation is performed, the compensating operation is performed bymoving the focusing lens 105 at the focus speed determined in Step 410in the direction of the focus speed (the direction toward the close-upend is positive, and the direction toward the infinity end is negative).

Due to the above-described processes, even when super-high-speed zoomingis performed in which the trajectory-tracing performance of the focusinglens unit 105 relative to the zoom lens unit 102 cannot be ensured withthe signal detection period of TV-AF or when the distance to the mainobject varies during zooming due to camerawork or the like, trajectorytracing of the focusing lens unit 105 can be reliably performed andimage blurring can be suppressed. In the present embodiment, the processof calculating the zoom-lens position after the vertical synchronizationperiod and the in-focus position (target position) to which the focusinglens unit 105 to be moved when the zoom lens unit reaches the zoom-lensposition is repeated once every vertical synchronization period toperform cam-curve tracking. However, this period is not limited to thevertical synchronization period, and the target position to becalculated may be the position after any predetermined time in theflowchart of the present embodiment. In addition, although it isdescribed above that the distance information is obtained from theobject-distance detector circuit 127 at the vertical synchronizationperiod, the present invention is also not limited to this.

In addition, it is not necessary that the calculation period of thetarget positions of the lens units be the same as the detection periodof the object distance. However, in the case in which the cam trajectoryto be traced must be changed immediately if the main object is changeddue to camerawork or the like in the zooming operation and the distanceinformation is changed accordingly, the following expression ispreferably satisfied:Object-Distance-Detection Period (sec)≦Target-Position-CalculationPeriod (sec)

In the present invention, each time the distance information is detectedat the object-distance-detection period, the camera microcomputer 116selects a cam trajectory to be traced from among the countless camtrajectories shown in FIG. 11 (including cam trajectories which are notdrawn in the figure but existing between the lines) as a curved linewhich continues from the wide angle end to the telephoto end. Thecalculation period of the target position (point) on the curved line maybe optimally determined depending on whether the curve is to be tracedas finely as possible or the microcomputer capacity and the load on themicrocomputer are to be reduced by somewhat approximating the curve by aline without causing unacceptable image blurring. Thus, the position ofthe zoom lens unit 102 and the in-focus position (target position) ofthe focusing lens unit 105 corresponding to the point on the curve arecalculated at the determined calculation period.

Second Embodiment

FIG. 3 is a flowchart for explaining the operation of a video cameraaccording to a second embodiment of the present invention. In theabove-described first embodiment, the trajectory to be traced by thefocusing lens unit 105 is determined (the target position is calculated)only on the basis of the output signal from the object-distance detectorcircuit 127. In comparison, in the present embodiment, a referencein-focus trajectory is determined using the distance information, andthe in-focus position is confirmed by the zigzag movement(driving-condition switching) using the TV-AF signal (AF evaluationsignal), so that the trajectory-tracing performance is improved.

In addition, in the shooting scene where the detection accuracy of theTV-AF signal is degraded, the shooting conditions are checked theprocess of correcting the trajectory tracing using the TV-AF signal islimited (restricted) so as to prevent accidental image blurring.

In the present embodiment, a process shown in FIGS. 3 and 4 correspondsto the zooming process performed in Step 705 of FIG. 9. Steps similar tothose in FIG. 2 or FIGS. 5 and 6 are denoted by the same referencenumerals, and explanations thereof are thus omitted.

Step 400 and Steps 402 to 410 are similar to those in the firstembodiment shown in FIG. 2.

Step 300 is similar Step 201 of FIG. 2, and the distance-informationprocessor 128 performs the cam-trajectory determining process using theoutput signal from the object-distance detector circuit 127. In Step201, the cam trajectory parameters are determined only on the basis ofthe information from the object-distance detector circuit 127. Incomparison, in Step 300, if precise distance information is obtained bythe cam-trajectory-correcting process using the TV-AF signal, thedifference from the distance information from the object-distancedetector circuit 127 is added so that the cam trajectory parameters arecalculated more accurately. More specifically, the distance-informationprocessor 128 performs the above-described first to third processes, anda more accurate object distance is determined on the basis of the resultof these processes. Then, the determined object distance is translatedinto the trajectory parameters. The lens-unit positions used in thefirst and third processes are not the current lens-unit positions duringthe zigzag movement, but are the current lens-unit positions in Step307, which will be described below. In addition, the third process ofdetermining the distance difference and the direction thereof isperformed in Step 307. In Step 300, the distance information from theobject-distance detector circuit 127 is corrected by adding orsubtracting the distance difference determined in Step 307 depending onthe direction of the distance difference, and the trajectory parametersα, β, and γ for the corrected distance information are calculated.

In Step 301, it is determined whether or not super-high-speed zooming isperformed in which the zoom speed is more than a predetermined speed. Ifsuper-high-speed zooming is performed, the process proceeds to Step 706of FIG. 9, similar to the first embodiment. If super-high-speed zoomingis not performed, the process proceeds to Step 302, and the modeselected by the menu switch unit 135 is checked to determine whether ornot the user is selecting the shooting mode where TV-AF is not used.

For example, when a sports mode is selected for shooting an object whichmoves fast, the distance to the main object changes momentarily evenwhen super-high-speed zooming is not performed. Therefore, thetrajectory to be traced is determined (target position is calculated)only on the basis of the object-distance information during zooming, sothat image blurring is suppressed and the disadvantages of TV-AF areeliminated. In such a case, this process is finished without performingthe re-determination of the trajectory to be traced (that is, the zigzagmovement) using the AF evaluation signal, which will be described below.

In addition, also when the timing generator 132 is controlled such thatslow shutter is selected and the detection period of the AF evaluationvalue is long (Step 303), higher tracing performance is obtained whenthe trajectory to be traced is determined only on the basis of theobject-distance information without referring to the AF evaluationsignal. Therefore, the process proceeds to Step 706 of FIG. 9 withoutperforming the following steps. Similarly, also when the S/N ratio ofthe AF evaluation value is low due to low illumination (when the AGCamplifier 107 is set to MAX) or when the contrast of the object is lowdue to darkness and the AF evaluation value obtained in the focusedstate does not largely differ from that obtained when the image is outof focus (Step 304), the process proceeds to Step 706 of FIG. 9 withoutperforming the following steps for a similar reason.

In Step 411, various parameters are initialized. In addition, a reversalflag used in the following steps is cleared.

In Step 412, the correction speeds Vf+ and Vf− for the zigzag movementare calculated from the focus standard moving speed Vf0 obtained in Step410. The correction parameter δ and the correction speeds Vf+ and Vf−are calculated by the method described above in the technical premisewith reference to FIG. 16.

In Step 413, it is determined whether or not zooming is performed on thebasis of the information showing the operational state of the zoomswitch 130 obtained in Step 703 of FIG. 9. When zooming is performed,the process proceeds to Step 416. When zooming is not performed, theprocess proceeds to Step 414, and TH1 is set to a value obtained bysubtracting a predetermined constant μ from the current AF evaluationsignal level. TH1 is the AF evaluation signal level used as thecriterion for switching the correcting-direction vector for the focusstandard moving speed Vf0 (the switching criterion for the zigzagmovement). Then, the correction flag is cleared in Step 415 and theprocess is finished.

If it is determined that zooming is performed in Step 413, it isdetermined whether or not the zooming direction is from wide angle totelephoto in Step 416. If the zooming direction is from telephoto towide angle, Vf+ and Vf− are both set to 0 and the process proceeds toStep 420, so that the zigzag movement is not performed in practice. Ifit is determined that the zooming direction is from wide angle totelephoto in Step 416, it is determined whether or not the currentzoom-lens position is closer to the wide-angle end than a predeterminedfocal length in Step 305.

If the zoom-lens position is closer to the wide-angle end than thepredetermined focal length, the gaps between the trajectories shown inFIG. 11 are small and the focused state is obtained at substantially thesame focusing-lens position for object distances in the range of severaltens of centimeters to infinity. Accordingly, there is a risk that thezigzag movement using TV-AF will cause image blurring, and therefore thezigzag movement is restricted by setting Vf+ and Vf− to 0 in Step 419.

If the zoom-lens position is closer to the telephoto end than thepredetermined focal length, it is determined that the zigzag movement isto be performed. First, it is determined whether or not the current AFevaluation signal level is less than TH1 in Step 417. If the current AFevaluation signal level is TH1 or more, the process proceeds to Step306. During the zigzag movement, the AF evaluation signal reaches thepeak level 1301 shown in FIG. 15 at some points. Accordingly, it isdetermined whether the peak level 1301 is detected in Step 306, and theprocess proceeds to Step 307 if the peak level is detected. In Step 307,the distance-information processor 128 determines the object-distanceinformation corresponding to the current lens-unit positions andcalculates the difference from the current distance information obtainedby the distance detector circuit 127 and the direction of thedifference. The object distance determined by the zigzag movement isupdated each time the peak is detected, and the distance difference andthe direction thereof are also updated at the same time. There-determined cam trajectory (object distance), the distance difference,and the direction of the distance difference updated in Step 307 areused for correcting the object distance obtained by the object-distancedetector circuit 127 once every vertical synchronization period. Morespecifically, the object distance obtained by the object-distancedetector circuit 127 is corrected by adding or subtracting the distancedifference depending on the direction of the distance difference, andthe trajectory parameters of the cam trajectory to be traced arecalculated on the basis of the corrected distance in Step 300. When Step307 is finished, or when the peak level is not detected in Step 306, theprocess proceeds to Step 420 and the operation is continued withoutswitching the correcting direction of the zigzag movement.

If the AF evaluation signal level is less than TH1 in Step 417, thereversal flag is set to 1 in Step 418 and the in-focus trajectory to betraced is re-determined (re-generated) while performing the zigzagmovement (Steps 420 to 424).

Due to the above-described processes, when the shooting conditions aresuch that accurate zoom tracking cannot be performed by TV-AF, forexample, when super-high-speed zooming is performed, when the S/N ratioof the AF evaluation signal is low, when the object contrast isinsufficient, or when an object to be shot moves fast, trajectorytracing of the focusing lens unit 105 is performed without using TV-AF.

In other shooting conditions, the reference in-focus trajectory (targetposition) is determined using the object-distance information, and thefocusing lens unit 105 is controlled such that it approaches the truein-focus position (in other words, the trajectory or the target positionis corrected) using the AF evaluation signal. Accordingly, it is notnecessary that the object-distance detector circuit 127 have highdetection accuracy. Therefore, the size and cost of the object-distancedetector circuit 127 can be reduced. In addition, when the combinationof the in-focus trajectory determination using the distance informationand the correction thereof using TV-AF is changed depending on the focallength of the optical system, accidental image blurring is prevented.

As described above, according to the above-described embodiments, evenwhen the signal detection period at which the AF evaluation value ofTV-AF is obtained is equal to the vertical synchronizing signal period,super-high-speed zooming can be performed without degrading the accuracyof determining the trajectory to be traced. Accordingly, the potentialof small, inexpensive super-high-speed actuators which have recentlybeen developed as actuators for focusing and zooming can be sufficientlyexploited. In other words, zooming can be performed while maintainingthe focused state even when the driving speeds of the actuators areincreased to the limits. Therefore, it is not necessary to change thezoom speed in the recording mode from the zoom speed set when the angleof view is adjusted in the standby state.

In addition, the problem in that the detection period of the AFevaluation value becomes equal to the exposure period when long-timeexposure, such as so-called slow shutter, is performed andtrajectory-tracing performance using only the AF evaluation value isdegraded accordingly can also be solved by the above-describedembodiments. In particular, image blurring does not occur when thein-focus trajectory is being determined. In addition, when zooming andpanning are performed simultaneously, image blurring can be corrected ina short time.

In addition, even in shooting conditions where the S/N ratio of the AFevaluation signal is low, as in the case where the contrast of theobject is low or the illumination is low, the zooming operation can beperformed while reliably maintaining the focused state.

In addition, in predetermined shooting modes, for example, in a shootingmode for shooting an object which moves fast, zooming is performed onlyon the basis of the information of the object distance. Therefore,compared to the case in which only TV-AF is used, the object-trackingperformance is greatly improved.

In addition, when the trajectory to be traced is determined using theobject-distance information and the true in-focus trajectory (targetposition) is re-determined while confirming the in-focus trajectoryusing the AF evaluation signal, the detection accuracy required of thedistance detector is reduced. Accordingly, the size and cost of thedistance detector and the imaging apparatus are reduced.

In addition, when the zoom-lens position is close to the wide-angle endwhere the in-focus trajectories converge, the focused state is obtainedat substantially the same focusing-lens position for object distances inthe range of several tens of centimeters to infinity. Accordingly, evenwhen the distance detection accuracy is low, high trajectory-tracingperformance can be obtained using only the information from the distancedetector. Therefore, when re-determination of the in-focus trajectorybased on the AF evaluation signal is restricted depending on the focallength of the optical system, image blurring caused when there-determination of the in-focus trajectory using TV-AF is incorrect isprevented.

Other Embodiment

The present invention can be applied to a system constituted by aplurality of devices (e.g., host computer, interface, reader, printer)or to an apparatus comprising a single device (e.g., copying machine,facsimile machine).

Further, the object of the present invention can also be achieved byproviding a storage medium storing program codes for performing theaforesaid processes to a computer system or apparatus (e.g., a personalcomputer), reading the program codes, by a CPU or MPU of the computersystem or apparatus, from the storage medium, then executing theprogram.

In this case, the program codes read from the storage medium realize thefunctions according to the embodiments, and the storage medium storingthe program codes constitutes the invention.

Further, the storage medium, such as a floppy disk, a hard disk, anoptical disk, a magneto-optical disk, CD-ROM, CD-R, a magnetic tape, anon-volatile type memory card, and ROM can be used for providing theprogram codes.

Furthermore, besides aforesaid functions according to the aboveembodiments are realized by executing the program codes which are readby a computer, the present invention includes a case where an OS(operating system) or the like working on the computer performs a partor entire processes in accordance with designations of the program codesand realizes functions according to the above embodiments.

Furthermore, the present invention also includes a case where, after theprogram codes read from the storage medium are written in a functionexpansion card which is inserted into the computer or in a memoryprovided in a function expansion unit which is connected to thecomputer, CPU or the like contained in the function expansion card orunit performs a part or entire process in accordance with designationsof the program codes and realizes functions of the above embodiments.

In a case where the present invention is applied to the aforesaidstorage medium, the storage medium stores program codes corresponding tothe flowcharts described in the embodiments.

The present invention is not limited to the above embodiments andvarious changes and modifications can be made within the spirit andscope of the present invention. Therefore to apprise the public of thescope of the present invention, the following claims are made.

While the present invention has been described with reference to whatare presently considered to be the preferred embodiments, it is to beunderstood that the invention is not limited to the disclosedembodiments. On the contrary, the invention is intended to cover variousmodifications and equivalent arrangements included within the spirit andscope of the appended claims. The scope of the following claims is to beaccorded the broadest interpretation so as to encompass all suchmodifications and equivalent structures and functions.

1. A lens-controlling device for controlling a first lens unit whichmoves for zooming and a second lens unit which moves for focusing, thelens-controlling device comprising: a first AF unit configured to detecta position of the second lens unit focusing on an object on the basis ofa high-frequency component of an object image; a second AF unitconfigured to detect a position of the second lens unit focusing on theobject using different schemes from the first AF unit; a memory storingposition data of the second lens unit that corresponds to a position ofthe first lens unit and an object distance; and a controller controllingthe movement of the second lens unit on the basis of positioninformation of the first lens unit and the position data, wherein thecontrol of the movement of the second lens unit is based on a detectionresult obtained by the second AF unit.
 2. The lens-controlling deviceaccording to claim 1, wherein the controller controls the movement ofthe second lens unit on the basis of focus information representing afocus state of an optical system including the first lens unit and thesecond lens unit, the focus information being obtained from aphotoelectric conversion signal of an optical image formed by theoptical system.
 3. The lens-controlling device according to claim 2,wherein the controller changes driving conditions of the second lensunit such that the second lens unit moves to a position where the objectis in focus according to the focus information during zooming.
 4. Thelens-controlling device according to claim 3, wherein the controllerrestricts the change in the driving conditions of the second lens unitwhen a moving speed of the first lens unit is a predetermined speed ormore.
 5. The lens-controlling device according to claim 3, wherein thecontroller restricts the change in the driving conditions of the secondlens unit when a recording time of an image signal is a predeterminedtime or more.
 6. The lens-controlling device according to claim 3,wherein the controller restricts the change in the driving conditions ofthe second lens unit when a brightness level of an image signal is apredetermined level or less.
 7. The lens-controlling device according toclaim 3, wherein the controller restricts the change in the drivingconditions of the second lens unit when a recording mode of an imagesignal is a predetermined mode.
 8. The lens-controlling device accordingto claim 3, wherein the controller restricts the change in the drivingconditions of the second lens unit when a focal length of the opticalsystem is a predetermined distance.
 9. A method for controlling a firstlens unit which moves for zooming and a second lens unit which moves forfocusing, the method comprising the steps of: firstly detecting aposition of the second lens unit focusing on an object on the basis of ahigh-frequency component of the object image secondly detecting aposition of the second lens unit focusing on the object using differentschemes from the first AF unit; and controlling the movement of thesecond lens unit on the basis of position data of the second lens unitand position information of the first lens unit, the position datacorresponds to a position of the first lens unit and an object distance,wherein, the control of the movement of the second lens unit is based ona detection result obtained by the step of secondly detecting.